package com.wft.chapter15;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class TestStream {
    public static void main(String[] args) {
        try {
            InputStreamReader inputStreamReader = new InputStreamReader(System.in);
            BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
            String line = null;
            while((line = bufferedReader.readLine()) != null){
                if("quit".equals(line)){
                    System.exit(0);
                }
                System.out.println("input keyword:" + line);
            }
        } catch(Exception e) {
            e.printStackTrace();
        }


    }
}
